home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr32 / 4space11.zip / 4DEMO.BAT next >
DOS Batch File  |  1995-02-07  |  4KB  |  98 lines

  1. @ECHO OFF
  2. CLS
  3. ECHO                   ╔══════════════════════════════╗
  4. ECHO                   ║                              ║
  5. ECHO                   ║          4Space 1.1          ║
  6. ECHO                   ║                              ║
  7. ECHO                   ║  From  Consultech Computing  ║
  8. ECHO                   ║                              ║
  9. ECHO                   ╚══════════════════════════════╝
  10.  
  11. IF !%1! == !! GOTO NoParam
  12.  
  13. ECHO.
  14. ECHO Welcome to 4SPACE 1.1.  This batch file demonstrates how it operates in
  15. ECHO various modes.  If you haven't already read the files README.1ST and
  16. ECHO 4SPACE.TXT, it is highly recommended that you do so before proceeding
  17. ECHO further.  README.1ST contains instructions on how to set the delay factor
  18. ECHO that must be used with this batch file.  If you haven't done that, you
  19. ECHO should quit and read README.1ST.  At any time, you can quit this batch file
  20. ECHO with CTRL-BREAK, or proceed by hitting (almost) any other key...
  21. PAUSE > NUL
  22.  
  23. IF !%1! == !0! GOTO CheckParam
  24. :ParamOK
  25.  
  26. CLS
  27. ECHO When starting, 4SPACE will pause at the opening screen.  This is to remind
  28. ECHO you to register your shareware.  Unfortunately, there is no way to disable
  29. ECHO this feature just for this demo, so please be patient.  Watch each example
  30. ECHO for a while to see how it goes - it isn't always apparent at the beginning.
  31. ECHO To quit the program, hit any key.  The spacebar halts (freezes) the screen
  32. ECHO temporarily.  To resume after freezing, again hit any key.
  33. ECHO.
  34. ECHO For starters, let's look at a fairly simple setting:  4SPACE /C9 /L6
  35. ECHO This means color number 9, 6 lines.  Press a key to continue.
  36. PAUSE > NUL
  37. 4SPACE /D%1 /C9 /L6
  38.  
  39. CLS
  40. ECHO Now let's get more interesting.  10 lines, multicolored.  This is done
  41. ECHO with 4SPACE /L10 /M.   /L can range from 3 to 32.  Press a key to continue,
  42. ECHO or (as always) CTRL-BREAK to quit...
  43. PAUSE > NUL
  44. 4SPACE /D%1 /L10 /M
  45.  
  46. CLS
  47. ECHO Next, we look at the /V switch.  This Varies the colors as the program
  48. ECHO runs.  How about 5 lines, multicolor, Variable:   4SPACE /L5 /M /V
  49. ECHO Press a key.
  50. PAUSE > NUL
  51. 4SPACE /D%1 /L5 /M /V
  52.  
  53. CLS
  54. ECHO Now we'll just get wild.  Let's try 24 lines, Multiple Variable colors, and
  55. ECHO add random sound.  Sound is added with the /N (Noise) switch.  So this one
  56. ECHO is:   4SPACE /L24 /M /V /N        Press a key to try it.
  57. PAUSE > NUL
  58. 4SPACE /D%1 /L24 /M /V /N
  59.  
  60. CLS
  61. ECHO That gets a bit confused, doesn't it?  So for our final demo, we'll use a
  62. ECHO setting that is a little more mellow.  This is one of my favorites.  If you
  63. ECHO use a number with the /N switch, you can set sound to a constant frequency.
  64. ECHO The range of frequencies is 100 to 7000.  Also, if you use /V without /M,
  65. ECHO only one color is visible but it Varies.  (I like constant colors though:
  66. ECHO they let you see the patterns better.)  So this one is going to be:
  67. ECHO 4SPACE /L5 /V /N300    That's a single, Variable color, 5 lines, and tones
  68. ECHO at approximately 300 Hz.   Press a key to try it.
  69. PAUSE > NUL
  70. 4SPACE /D%1 /L5 /V /N300
  71.  
  72. CLS
  73. ECHO I hope you have enjoyed the demo.  Fiddle with the settings yourself and
  74. ECHO you will soon get the hang of them.  Hint:  it usually looks best if it
  75. ECHO doesn't run too fast, so make sure to adjust your /D setting.
  76. ECHO.
  77.  
  78. GOTO BatchEnd
  79.  
  80. :CheckParam
  81. CLS
  82. ECHO 
  83. ECHO You have chosen to run 4SPACE with a delay setting of 0.  This may cause
  84. ECHO 4SPACE to run too fast on some machines.  Are you sure you want to do this?
  85. ECHO If not, press CTRL-BREAK now, or press any other key to continue.
  86. PAUSE > NUL
  87. ECHO.
  88. GOTO ParamOK
  89.  
  90. :NoParam
  91. ECHO.
  92. ECHO 
  93. ECHO This batch file requires a command line parameter for the delay factor,
  94. ECHO even if it is only 0.  See the file README.1ST for further instructions.
  95.  
  96. :BatchEnd
  97.  
  98.